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 'LIMIT 0, 18' at line 9(No Description) sql: SELECT * FROM products p WHERE manufacturer_id = 166 AND parent_id = 0 AND hidden = 0 AND enabled = 1 AND 1 = 1 ORDER BY LIMIT 0, 18