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