links

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND is_published = 1 ORDER BY order_number DESC' at line 1

SELECT count(*) AS c FROM gallery WHERE category_id = AND is_published = 1 ORDER BY order_number DESC

[TEP STOP]