Jump to content

[RESOLVED] SQL Syntax Error on Activity Log


Recommended Posts

There error on Activity Log


SQL Error: Unknown column 'balance' in 'order clause' - Full Query: SELECT tblaffiliatesaccounts.id,tblaffiliatesaccounts.lastpaid,tblaffiliatesaccounts.relid, concat(tblclients.firstname,' ',tblclients.lastname) as clientname,tblproducts.name,tblhosting.userid,tblhosting.domainstatus,tblhosting.domain,tblhosting.amount,tblhosting.firstpaymentamount,tblhosting.regdate,tblhosting.billingcycle FROM tblaffiliatesaccounts INNER JOIN tblhosting ON tblhosting.id=tblaffiliatesaccounts.relid INNER JOIN tblproducts ON tblproducts.id=tblhosting.packageid INNER JOIN tblclients ON tblclients.id=tblhosting.userid WHERE tblaffiliatesaccounts.affiliateid='020' ORDER BY `balance` DESC LIMIT 0,50

Link to comment
Share on other sites


This has been confirmed as happening when the affiliates list is sorted by balance, and then an individual affiliates profile is entered into and it tries to sort the referred signups list by the balance field. A workaround for this right now is to click any column heading in the referred signups list should it occur, and that will allow the referred signups to be displayed correctly.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated