Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "7qlpkk5jle01rje4n9m6m2bvl4"