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