twitter: Resolved a SQL error and some SQL warnings