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