Thanks a lot Jam!
Dunno how I missed that. I have been rather brain dead today.
For anyone wondering, the
Code: Select all
WHERE (CharID = '$GCharID' AND BookID < '$GBookID') or (BookID = '$GBookID' AND ChapterID <= '$GChapterID')Thanks again Jam and feyd!