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