SELECT a.*,, c.county,, as uid FROM puppy_ads a LEFT JOIN breeds b ON LEFT JOIN counties c ON LEFT JOIN users d ON WHERE 1=1 AND ('1' OR'0') ORDER BY DESC LIMIT -20,20
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 '-20,20' at line 6