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