A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND `content`.`content_type_id` = 10 AND `content`.`content_published` = 1 AN...' at line 6

SELECT `content_type`.*, `users`.*, `content`.* FROM `content` JOIN `content_type` ON `content_type`.`content_type_id`=`content`.`content_type_id` LEFT JOIN `users` ON `content`.`created_by`=`users`.`user_id` WHERE `content`.`content_id` < AND `content`.`content_type_id` = 10 AND `content`.`content_published` = 1 AND `content`.`deleted_at` IS NULL AND (content.content_status is null or content.content_status='Approved') AND content.deleted_at is null AND `content`.`parent_content_id` = '0' AND content_type.deleted_at is null ORDER BY `content`.`stick_ontop` DESC, `content`.`rank_order` DESC, `content`.`content_id` DESC LIMIT 6

Filename: modules/custom_content/models/Content_model.php

Line Number: 34