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