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 `categories_products`.`category_id` = 47 ORDER BY RAND() LIMIT 4' at line 6

SELECT `products`.* FROM (`products`) LEFT OUTER JOIN `categories_products` categories_products ON `products`.`id` = `categories_products`.`product_id` WHERE ( `products`.`id` <> ) AND `categories_products`.`category_id` = 47 ORDER BY RAND() LIMIT 4

Filename: /var/www/vhosts/kwdegree.com/httpdocs/libraries/datamapper.php

Line Number: 1408