Pull Request 

please remove the variable $row and pass the query string directly in $db->value