Unknown column 'img' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = img and session_id = "e3j1v46ee2b03m4dg00tchpam2"