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