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