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