show_error contains exit() function. log_message moved higher
0 results is valid result too. check for not numeric results only
without posts in database is equivalent to false in the following steps. need to return empty result