Error in SQL parsing fixed