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