Trying to select all columns but avoid more than 1 same userid.
$result = mysql_query("select *, DISTINCT userid from ringtones where deletedbyuser='0' and (lang='$lang' or lang='en') order by id desc limit 10");
Please help.
Table structure:
id int(10)
userid int(10)
artist varchar(100)
title varchar(100)
lang varchar(2)
public int(1)
status int(1)
deletedbyuser int(1)
You can
this will pick the first one added if there are more than one.