I\'m bulding a search function for my web site and wish to search by two columns: title and author.
Query:
SELECT title, bookID, publisher, pubDate, boo
Try it out:
SELECT bk.title, bk.bookID, bk.publisher, bk.pubDate, bk.book_image, bk.authorID, au.author FROM books bk, authors au WHERE bk.authorID = au.authorID AND bk.title LIKE '$queryString%' OR au.author LIKE '$queryString%' LIMIT 5