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