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