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