<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Disabled accounts - Viewers causes SQL error!</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Disabled-accounts---Viewers-causes-SQL-error-78553</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 09:14:36 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Disabled-accounts---Viewers-causes-SQL-error-78553" rel="self" type="application/rss+xml" />

                <item>
          <title>Disabled accounts - Viewers causes SQL error!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229706#post2229706</link>
          <description><![CDATA[<p>Hi,</p>
<p>I've done some local testing, but couldn't recreate the problem. Would it be possible to complete a second level support request for me? You can find the form here:</p>
<p><a href="https://www.interactivetools.com/support/email_support_form.php" rel="nofollow">https://www.interactivetools.com/support/email_support_form.php</a></p>
<p>Then I can take a closer look at what is causing the issue.</p>
<p>Thanks!</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 05 Mar 2013 10:17:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229706#post2229706</guid>
        </item>
                <item>
          <title>Disabled accounts - Viewers causes SQL error!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2229704#post2229704</link>
          <description><![CDATA[<p>When I turn on Disabled Accounts     Viewers: Hide records that are "Created By" a user who is: deleted, disabled, or expired on one my my sections I get the following SQL error:</p>
<p>MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY dragSortOrder DESC LIMIT 1' at line 3</p>
<p>Here is the debugSql:</p>
<p>SELECT SQL_CALC_FOUND_ROWS `newsletters`.* FROM `cms_newsletters` as `newsletters` WHERE (num=4828 AND newsletters.createdByUserNum IN (SELECT num FROM `cms_accounts` WHERE disabled != 1 AND (expiresDate &gt; NOW() OR neverExpires = 1))) ORDER BY pub_date DESC, title LIMIT 1</p>
<p>And here is the code:</p>
<p>    list($newsletterRecords, $newsletterMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'newsletters',<br />    'where'       =&gt; 'num='.$num,<br />    'allowSearch' =&gt; false,  <br />    'limit'       =&gt; '1',<br />    'debugSql'=&gt; true,<br />    ));<br /><br /></p>
<p>I have version 2.5 installed.</p>]]></description>
          <pubDate>Tue, 05 Mar 2013 08:04:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2229704#post2229704</guid>
        </item>
              </channel>
    </rss>
  