Warning: join(): Invalid arguments passed in /home/ape/domains/apepet.com/public_html/promotion.php on line 245
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 ')' at line 1
SELECT COUNT(id) as total FROM apeindex_promotion WHERE starttime <= 1545148800 AND (endtime = '0' || endtime >= 1545148800) AND categories IN ()