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