This is my sql query to sum the error count in DB. What made the problem below is, when I check the available data in this, it retrieve the actual and correct data given, if I'm giving any wrong (that is unavailable data in table) input it gives nothing that is it doesn't throw any output screen: This is my sql query to sum the error count in