public static function getLogData($syncid, $type = 'all', $limitstart = null, $limit = null, $sort = 'id', $dir = 'ASC')
	{
		$db = Factory::getDBO();

		$query = $db->getQuery(true)
			->select('*')
			->from('#__jfusion_sync_details')
			->where('syncid = ' . $db->quote($syncid));

		if (!empty($sort)) {
			$query->order($sort . ' ' . $dir);
		}

		if ($type != 'all') {
			$query->where('action = ' . $db->quote($type));
		}

		$db->setQuery($query, $limitstart, $limit);
		$results = $db->loadObjectList('id');

		return $results;
	}