#set$sql_statement+='(SELECT COUNT(*) FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 AND status IN '+$status_quality+') AS ep_snatched, '
#set$sql_statement+='(SELECT COUNT(*) FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 AND status IN '+$status_download+') AS ep_downloaded, '
#set$sql_statement+='(SELECT COUNT(*) FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 '
#set$sql_statement+=' AND ((airdate <= '+$today+' AND (status = '+str($SKIPPED)+' OR status = '+str($WANTED)+')) '
#set$sql_statement+=' OR (status IN '+status_quality+') OR (status IN '+status_download+'))) AS ep_total '
#set$sql_statement+=' FROM tv_episodes tv_eps LIMIT 1'