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