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