SQL optimised in rep303.php
Removed redundant ORDER BY and description grouping as category_id and stock_id take precedence.