Fixed the SQL for the standars