MBG
MBG
Offline
0
Hey guys, we encountered one more error when setting up the Content Statistics and selecting Filter by viewing user.

Here is the error


1054 Unknown column 'st.user_id' in 'where clause' SQL=
SELECT SUM(at.comission) AS howmuch, at.date_created AS date_event
FROM x_affiliate_tracker_conversions AS at LEFT JOIN x_affiliate_tracker_accounts AS acc ON acc.id = at.atid
WHERE 1 = 1 AND at.date_created
BETWEEN SUBDATE(CURDATE(), 30) AND NOW() AND st.user_id = X AND acc.user_id = X AND at.approved = 1
GROUP BY DAY(date_event), MONTH(date_event), YEAR(date_event)
ORDER BY date_event

Accepted Answer

Wednesday, April 08 2015, 10:10 AM - #Permalink
0
Done! I have updated the plugin to version 1.4.1 to avoid this issue.
The reply is currently minimized Show
Responses (4)
  • Accepted Answer

    Wednesday, April 08 2015, 10:04 AM - #Permalink
    0
    hello!

    thanks for notifying. I will get this solved, HOWEVER, you don't need (actually, you don't have) to set the "filter by user" to ON, it should be let to off (because it will filter results anyway)

    but as I'm saying, I will change this behavior.
    The reply is currently minimized Show
  • Accepted Answer

    MBG
    MBG
    Offline
    Wednesday, April 08 2015, 10:51 AM - #Permalink
    0
    I thought this was a bit strange because it is the front-end module and how I understand it (or think it should be) is that it should always filter the statistics for the specific user. Is that how it is done now?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 08 2015, 10:53 AM - #Permalink
    0
    yes it is. even if you don't mark that option, the frontend users will alway see ONLY their stats (as it is logical)
    The reply is currently minimized Show
  • Accepted Answer

    MBG
    MBG
    Offline
    Wednesday, April 08 2015, 10:54 AM - #Permalink
    0
    Thanks for your dedication and clarification man! :)
    The reply is currently minimized Show
Your Reply