Unclear MySQL troubles
-
I’ve now been banging my head against a “virtwall” for a few hours so I figured I’m going to call for some help now. Hopefully I’m posting this in the right place, otherwise let me know.
I am customizing a function in my theme that shows Latest Comments, in order to show them only for a given category.
I leveraged the code below, which I created to show commentators per category by tweaking the Top Commentators plugin, and works fine:
[Code moderated as per the Forum Rules. Please use the pastebin]
If anyone good with mysql/php could take a look to tell me if there is something obviously wrong with that code, that would be great.
The code works if I remove the last 2 LEFT OUTER joins.
Strangely, it also returns empty results if I changeFROM $wpdb->comments
toFROM $wpdb->comments as co
, something I can’t explain.
- The topic ‘Unclear MySQL troubles’ is closed to new replies.