Am attempting to get this query just show me one of each numerical s_job.id. Right now this query is showing me the same records as duplicates . Tried to DISTINCT it, but somehow I am just not getting it.
Any help - much appreciated.
$result = mysql_query("SELECT DISTINCT
starterstable.s_jobid,
con2.c_jobid,
con2.c_id,
con2.c_uname,
con2.c_hours,
con2.c_complete,
con2.c_jobid,
starterstable.s_initname,
starterstable.s_clientname,
starterstable.s_jobtitle,
starterstable.s_duedate,
starterstable.s_duetime,
starterstable.s_initname,
starterstable.s_initname,
starterstable.s_initname
FROM starterstable, con2
WHERE con2.c_uname = 'Nelson'
AND con2.c_jobid = starterstable.s_jobid");