SELECT `proprieta`.*, `prop_immagini2022`.`id` AS `idpreview` FROM `vicenzaresidenze`.`proprieta` INNER JOIN `vicenzaresidenze`.`prop_immagini2022` ON (`proprieta`.`id` = `prop_immagini2022`.`prop`) WHERE logo = 1 and attivo = 1 and rapporto = 'vendita' and FIND_IN_SET(17, REPLACE(macro_geo2022, '-', ',')) > 0 order by home desc LIMIT -12, 12

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 '-12, 12' at line 1