SELECT * FROM poll_cat WHERE c_approve = 'Y' AND ((('2019-07-23' between c_start AND c_stop) OR (c_start <= '2019-07-23' AND c_stop = ''))) ORDER BY c_id DESC LIMIT -5 , 5
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 '-5 , 5' at line 2