class.order completely recoded to reduce SQL requestsall other files: fix SQL-statements to SQL-strict
class.order completely recoded to reduce SQL requests
all other files: fix SQL-statements to SQL-strict