diff --git a/resources/sql/autopatches/20180214.harbor.01.aborted.php b/resources/sql/autopatches/20180214.harbor.01.aborted.php
--- a/resources/sql/autopatches/20180214.harbor.01.aborted.php
+++ b/resources/sql/autopatches/20180214.harbor.01.aborted.php
@@ -10,7 +10,8 @@
 
   $aborted = queryfx_one(
     $conn,
-    'SELECT * FROM %T WHERE buildablePHID = %s AND buildStatus = %s',
+    'SELECT * FROM %T WHERE buildablePHID = %s AND buildStatus = %s
+      LIMIT 1',
     id(new HarbormasterBuild())->getTableName(),
     $buildable->getPHID(),
     'aborted');