I ran into a bug with MySQL with 4.1.8 and consequently 4.1.15 that was verified last night. It occured when trying to do a relatively simple SELECT statement on forum nodes and ORDERing the result set. While the query worked on blog types and pages, forum and story returned empty sets. MySQL 5.x does not have the bug.
I hope this is in the right place. I am having a hell of a time figuring out how to get news aggregator to aggregate! I have followed the instructions to the T. I've tried not only the WoW IGN vault feed, but my own livejournal feed, and nothing works. What am I doing wrong!?
I have created several content types with flexinode. I would like to restrict users from making more than one node of a particular content type. Anybody have suggestions?
When we started testing Drupal, we noticed that the PM module did not list all of the names to which PMs had recently been sent by a user--sometimes as many as HALF of the recipients would not be listed.
Here's the present code:
$result = db_query("
SELECT DISTINCT(name) AS name
FROM {personalmsg} p, {users} u
WHERE p.author = u.uid
AND recipient = '%d'
AND p.timestamp > (UNIX_TIMESTAMP(NOW()) - (3600 * 24 * 30))
ORDER BY name", $user->uid);