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