// Add description as navigation point
addMenuDescription('admin', __FILE__);
-// Check for maximum pages
-$result_maximum = SQL_QUERY("SELECT
+// Init SQL
+$sql = "SELECT
`id`, `sender`, `subject`, `text`, `receivers`, `payment_id`, `data_type`, `timestamp`, `url`, `target_send`, `cat_id`
FROM
`{?_MYSQL_PREFIX?}_pool`
WHERE
`data_type`='SEND' OR `data_type`='DELETED'
ORDER BY
- `timestamp` DESC", __FILE__, __LINE__);
+ `timestamp` DESC";
+
+// Check for maximum pages
+$result_maximum = SQL_QUERY(, __FILE__, __LINE__);
// Set offset an current page to default values
if (!isGetRequestParameterSet('page')) setGetRequestParameter('page' , 1);