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