You have an error in your SQL syntax near 'and discontinued='n'' at line 1