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