mychelle/WP-e-Commerce — comment on commit c1a0a52bc3079eb940ce3766565c5f6f08dbeae7
File: wpsc-admin/includes/purchase-log-list-table-class.php line 70
By garyc40:

It's not good practice to query the database while outputting HTML content.

We should usually query the database before any output is printed out.