<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Supplier transaction inquiry - error 1064]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1977&amp;type=atom" />
	<updated>2011-04-01T10:51:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1977</id>
		<entry>
			<title type="html"><![CDATA[Re: Supplier transaction inquiry - error 1064]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8632#p8632" />
			<content type="html"><![CDATA[<p>Thanks for quick response - tried as you suggested and just came up with same error message so must be a compatibility problem.&nbsp; We are going to solve this by moving servers because there may be other issues as well that we haven&#039;t discovered - Have already talked to our hosts to get it organised.</p><p>Many thanks again</p>]]></content>
			<author>
				<name><![CDATA[Hocus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5167</uri>
			</author>
			<updated>2011-04-01T10:51:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8632#p8632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Supplier transaction inquiry - error 1064]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8630#p8630" />
			<content type="html"><![CDATA[<p>Seems this query is not compatible with MySQL 4 (works right under 5.1). If you can, please try to locate the problem testing the displayed query in phpmyadmin. </p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2011-04-01T09:19:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8630#p8630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Supplier transaction inquiry - error 1064]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8628#p8628" />
			<content type="html"><![CDATA[<p>I don&#039;t know whether this is an install error or a bug but since this is a clean install with no data I am posting it here.&nbsp; As I say clean install, no data but I get this error.&nbsp; Have tried setting up new db and reinstalling and have also tried with data but always same problem - Everything else is fine and I think the whole product looks very good.&nbsp; Our server is running PHP 5.2 and MySql 4.1.11 - I know this is a fairly old version but have checked with host and all requirements are met, so should not be a problem.&nbsp; Any help appreciated.&nbsp; The full message is:</p><p>DATABASE ERROR : Error reading record set<br />error code : 1064<br />error message : 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 &#039;)) as tr)&#039; at line 32<br />sql that failed was : SELECT COUNT(*) FROM ((SELECT trans.type, trans.trans_no, trans.reference, supplier.supp_name, trans.supp_reference, trans.tran_date, trans.due_date, supplier.curr_code, (trans.ov_amount + trans.ov_gst + trans.ov_discount) AS TotalAmount, trans.alloc AS Allocated, ((trans.type = 20 OR trans.type = 21) AND trans.due_date &lt; &#039;2011-04-01&#039;) AS OverDue, (ABS(trans.ov_amount + trans.ov_gst + trans.ov_discount - trans.alloc) &lt;= 0.005) AS Settled FROM 0_supp_trans as trans, 0_suppliers as supplier WHERE (supplier.supplier_id = trans.supplier_id AND trans.tran_date &gt;= &#039;2011-03-02&#039; AND trans.tran_date &lt;= &#039;2011-04-01&#039; AND trans.ov_amount != 0) UNION (SELECT 25 as type, trans.id as trans_no, trans.reference, supplier.supp_name, &#039;&#039; as supp_reference, delivery_date as tran_date, &#039;&#039; as due_date, supplier.curr_code, &#039;&#039; AS TotalAmount, &#039;&#039; AS Allocated, 0 as OverDue, 1 as Settled FROM 0_grn_batch as trans, 0_suppliers as supplier WHERE supplier.supplier_id = trans.supplier_id AND trans.delivery_date &gt;= &#039;2011-03-02&#039; AND trans.delivery_date &lt;= &#039;2011-04-01&#039;)) as tr)</p>]]></content>
			<author>
				<name><![CDATA[Hocus]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=5167</uri>
			</author>
			<updated>2011-04-01T08:31:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8628#p8628</id>
		</entry>
</feed>
