Warning: join(): Invalid arguments passed in /home/ape/domains/apepet.hk/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 <= 1539619200 AND (endtime = '0' || endtime >= 1539619200) AND categories IN ()