Unknown column 'vendor' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = vendor and session_id = "421kcug77kfnf4rqb97b8jiep4"