You have an error in your SQL syntax near 'AND STATUS = 'A'' at line 1