Error in query: SELECT trader.*,municipality.name_gr as municipality_name,region.name_gr as region_name FROM trader LEFT JOIN municipality ON municipality.municipality_id=trader.municipality LEFT JOIN region ON region.region_id=municipality.region_id WHERE blocked='0' AND verified='1' ORDER BY trader.score desc LIMIT -180, 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 '-180, 20' at line 7