... simplified SQL command

This commit is contained in:
following
2013-10-29 13:36:10 +01:00
parent cfec7208e2
commit 1cd244560d

View File

@ -21,7 +21,7 @@
FROM `cache_logs`
INNER JOIN `caches` ON `caches`.`cache_id`=`cache_logs`.`cache_id`
INNER JOIN `caches_attributes` ON `caches_attributes`.`cache_id`=`cache_logs`.`cache_id` AND `caches_attributes`.`attrib_id`=6
WHERE `cache_logs`.`user_id`='&1' AND `cache_logs`.`type` IN (1,7) AND `caches`.`type` <> 6
WHERE `cache_logs`.`user_id`='&1' AND `cache_logs`.`type` = 1
GROUP BY `difficulty`, `terrain`",
$userid);
}