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