Projects Directory : Complex Scrapper using Jquery and MySQL - Complex SQL Query