A Database Error Occurred
Error Number: 1064
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 'and tipoapp=1 and visibile=true order by datainizio asc' at line 4
SELECT offerte.*, offerteapt.prezzo, offerteapt.vis FROM `offerte` join offerteapt on offerte.id = offerteapt.idofferta where offerteapt.idappartamento= and tipoapp=1 and visibile=true order by datainizio asc