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