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