Many thanks PinkMilk, that solved my problem!
Also, sorry for the late reply - I must have overlooked the notification that there was another reply in this thread.
--------------- Added [DATE]1583036794[/DATE] at [TIME]1583036794[/TIME] ---------------
Now I need to work out how to change the number of images displayed on a social group page. The default seems to be 5.
--------------- Added [DATE]1583037965[/DATE] at [TIME]1583037965[/TIME] ---------------
Found it :-)
Code:
WHERE socialgrouppicture.groupid = $group[groupid]
$hook_query_where
ORDER BY socialgrouppicture.dateline DESC
LIMIT 5