A Database Error Occurred
Error Number: 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 '> 0 OR (rank = 0 AND rating > 0.00 OR (rating = 0.00 AND published > '0000-00-00' at line 3
SELECT COUNT(*) AS cnt FROM pods WHERE active=1 AND published != '0000-00-00 00:00:00' AND cat_id = 1 AND (rank > 0 OR (rank = 0 AND rating > 0.00 OR (rating = 0.00 AND published > '0000-00-00 00:00:00' OR (published = '0000-00-00 00:00:00' AND id < 144))))