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