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