Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-10, 10' at line 1 Whole query: SELECT units.*, neighborhoods.slug as neighborhood_slug, neighborhoods.title as neighborhood_title, buildings.id as building_id, buildings.slug as building_slug, buildings.street_short as street_short, buildings.lat as building_lat, buildings.lng as building_lng, bedrooms.abbreviation as bedroom_abbreviation FROM units INNER JOIN buildings ON buildings.id = units.building_id INNER JOIN neighborhoods ON neighborhoods.id = buildings.neighborhood_id INNER JOIN bedrooms ON bedrooms.id = units.bedrooms_id WHERE units.site_search_status = 'Live' AND units.market_type = 'open' AND units.market_status = 'active' ORDER BY units.id ASC LIMIT -10, 10