Hi,
I would like to take the following sql and modify it to be able to grab two usernames from the USER table instead of one like now
right now, USERNAME gets set based on a match between USER.UID and CP.lpUIDuser...
I would also like to match USER.UID and CP.userUID and extract this username.. not quite sure how to do this though.
Code:
SELECT CP.UID, CP.parentUID, CP.userUID, CP.iniTIMESTAMP, CP.liveTIMESTAMP, CP.TYPE, CP.TITLE, CP.webTITLE, CP.DESCRIPTION, CP.viewCOUNT, CP.replyCOUNT, CP.upVOTE, CP.downVOTE, CP.customVAL1, CP.lpTIMESTAMP, CP.lpUIDuser, USER.UID, USER.USERNAME FROM CP INNER JOIN USER ON USER.UID = CP.lpUIDuser ORDER BY CP.lpTIMESTAMP DESC LIMIT 0, 15
Thanks for any help!
