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