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