2020-03-05, 02:20 PM
(This post was last modified: 2020-03-05, 02:20 PM by StefanT. Edited 1 time in total.)
It's slightly confusing you are talking about 2 different tables that have totally different purpose. However your code simply doesn't work without additional changes.
a) By mybb_threadsviews has just one column. There is no way to find views from the same user.
b) It doesn't change how views are counted at all (beside potentially counting the same views multiple times)
c) Your query will throw a SQL error. TRUNCATE queries don't support WHERE conditions: https://stackoverflow.com/a/8416804
a) By mybb_threadsviews has just one column. There is no way to find views from the same user.
b) It doesn't change how views are counted at all (beside potentially counting the same views multiple times)
c) Your query will throw a SQL error. TRUNCATE queries don't support WHERE conditions: https://stackoverflow.com/a/8416804