Follow up fix for MDL-11535 "Blog block sql error" - ...MAX(ordering) max_order - adding "AS"

This commit is contained in:
nfreear 2007-10-15 14:47:34 +00:00
parent 87d52a0a30
commit 932e97ea6d

View File

@ -378,7 +378,7 @@ function tag_an_item($item_type, $item_id, $tag_names_or_ids_csv, $tag_type="def
//tag instances of an item are ordered, get the last one
$query = "
SELECT
MAX(ordering) max_order
MAX(ordering) AS max_order
FROM
{$CFG->prefix}tag_instance ti
WHERE