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