Index: /trunk/ippTools/src/dettool.c
===================================================================
--- /trunk/ippTools/src/dettool.c	(revision 8247)
+++ /trunk/ippTools/src/dettool.c	(revision 8248)
@@ -98,5 +98,7 @@
     PS_ASSERT_PTR_NON_NULL(config, NULL);
 
-     char *query = "SELECT rawDetrendExp.* FROM rawDetrendExp LEFT JOIN detInputExp ON rawDetrendExp.exp_id = detInputExp.exp_id WHERE detInputExp.exp_id IS NULL";
+     char *query = "SELECT rawDetrendExp.* FROM rawDetrendExp"
+        " LEFT JOIN detInputExp ON rawDetrendExp.exp_id = detInputExp.exp_id"
+        " WHERE detInputExp.exp_id IS NULL";
 
     if (!p_psDBRunQuery(config->dbh, query)) {
