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