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