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