Projects Directory : Complex script debug - repost - Complex SQL query across multiple tables. Mysql