When: Tue, 23 Dec 2014 03:57:02 +1100
                  Remote Addr: 10.125.56.28
                  Forwarded For: 54.90.251.197
                  User Agent: CCBot/2.0 (http://commoncrawl.org/faq/)
                  Host: www.livestockcarriers.com.au
                  Query String: 
                  Request URI: /
                  argv[0]: 
                  error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 31
                  
				SELECT
					a.id as article_id,
					a.title,
					a.summary as synopsis,
					a.body,
					a.updated as date,
					YEAR(a.updated) AS `year`,
					MONTH(a.updated) AS `month`,
					DAY(a.updated) AS `day`,
					DATE_FORMAT(a.updated, '%W %M %e, %Y') AS release_date, CONCAT('/',
					CONCAT_WS('/', cb.businesslisting_friendly_uri, 'article', a.alias)) as absolute_path,
					cbs.businesslisting_staff_name as original_author,
					'Promoted User Articles' as publication,	
					a.tags as meta_keywords,
					'user_contrib' as source_type
				FROM
					_secure_omg.articles as a
				INNER JOIN _secure_omg.co_businesslisting as cb ON cb.businesslisting_id = a.business_listing_id
				INNER JOIN _boomerang_domains.domain as d ON d.domain_id = a.domain_id
				LEFT JOIN _secure_omg.co_businesslisting_staff as cbs ON a.staff_id = cbs.businesslisting_staff_id
				WHERE
					a.domain_id = 29556				
				AND
					a.status = 'published'
				AND
					a.promoted = 1
			
				ORDER BY
                    a.updated DESC
				LIMIT
					0,