cal_counter Error in executing select distinct calday_calid from caldaytbl, caltbl where
calday_date >='2018-05-17' and calday_date<='2018-05-31' AND cal_id=calday_calid AND cal_lan = 15 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