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