Error in select statement when setting up a custom report

A post was split to a new topic: Custom report for Indian states for tax filing