title: MySQL Query not returning
body: <p>I'm unfamiliar with MySQL, and I don't know where to begin with solving this query issue.</p>
  
  <pre><code>SELECT * 
  FROM `rmedspa`.`clients` c  
  inner join `rmedspa`.`tickets` t on c.clientid = t.clientid  
  where c.fldclass is not null     
  AND t.ticketID &gt; 0
  </code></pre>
  
  <p>This query returns just fine in MySQL Workbench, in 30 seconds, and the IDE is limiting the query results to 1000 records.  The database is not on my own machine, but on a server that is in a different location (in other words, it's going out to the internet and it's slow).  If I add an order by at the end, the query never returns.</p>
  
  <pre><code>SELECT * 
  FROM `rmedspa`.`clients` c  
  inner join `rmedspa`.`tickets` t on c.clientid = t.clientid  
  where c.fldclass is not null     
  AND t.ticketID &gt; 0
  ORDER BY t.ticketid 
  </code></pre>
  
  <p>There are "many" tickets for 1 client.  t.ticketid is an int.  clientid is an int, too.</p>
  
  <p>I don't know where to begin to find out why the ORDER BY is causing this query to never return.  It doesn't fail, it just doesn't return.</p>