cal_counter Error in executing select distinct calday_calid from caldaytbl, caltbl where
calday_date >='2020-09-16' and calday_date<='2020-09-30' AND cal_id=calday_calid AND cal_lan = 13 AND cal_category = 8 limit 0, -1error: 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 '-1' at line 2