<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Could not retrieve last order detail - Error]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10692</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10692&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Could not retrieve last order detail - Error.]]></description>
		<lastBuildDate>Thu, 13 Nov 2025 04:24:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Could not retrieve last order detail - Error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43783#p43783</link>
			<description><![CDATA[<p>Hello,<br />This morning I suddenly discovered that I can no longer create any invoices in FrontAccounting. The invoice lines are missing and, when selecting a customer – some can be selected, but actively used customers cannot.<br />I turned on Debug mode and I get the following error message:</p><p>ANDMEBAASI VIGA: Could not retrieve last order detail<br />error code : 1104<br />error message : The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay<br />sql that failed was : SELECT stk_code FROM 0_sales_order_details d LEFT JOIN 0_sales_orders o on d.order_no=o.order_no WHERE debtor_no=&#039;676&#039; ORDER BY d.id DESC LIMIT 1</p><p>How can this be resolved?</p><br /><p>EDIT: As I understand it, the problem is that the database is too large and there are too many rows. Indeed, I have been actively using FrontAccounting since 2009. The database size is over 200 MB. I would like to delete some older financial years, but for some reason this is not possible. I also don’t get any error messages, even when debug mode is enabled.<br />Is it somehow possible to delete old entries directly via phpMyAdmin using an SQL command? I would gladly remove several years and make the database smaller.</p>]]></description>
			<author><![CDATA[null@example.com (spott)]]></author>
			<pubDate>Thu, 13 Nov 2025 04:24:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43783#p43783</guid>
		</item>
	</channel>
</rss>
