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