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 '" AND condos.visible = 'y'' at line 1select condos.* from bccondos.condos where condos.id = 79" AND condos.visible = 'y'