select l.fsmallpath as fsmallpath,s.*,date_format(s.fdate,'%b %d, %y') as dateadded,s.fid as sid from atstories s left join atstorieslogo l on l.frstories = s.fid where s.fid=