Error 1104

kimler
kimler
Offline
0
Hello there,

since today I get this msg if I want add a new invoice ... so whats going wrong? I never had the problem before:

1104 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 SQL=SELECT i.*, u.name as username, co.name as contact_name, co.user_id as joomla_user_id, SUM(DISTINCT pa.payment_amount) AS total_paid, SUM(DISTINCT pa2.payment_amount) AS total_unpaid, SUM(DISTINCT pa3.payment_amount) AS total_unpaid_ontime, COUNT(DISTINCT pa.id) AS paid_payments, COUNT(DISTINCT pa2.id) AS unpaid_payments, COUNT(DISTINCT pa3.id) AS unpaid_payments_ontime FROM qjs6g_invoices_invoices as i LEFT JOIN qjs6g_invoices_contacts as co ON co.id = i.user_id LEFT JOIN qjs6g_invoices_payments as pa ON (pa.invoice_id = i.id AND pa.payment_status = 1) LEFT JOIN qjs6g_invoices_payments as pa2 ON (pa2.invoice_id = i.id AND pa2.payment_status = 0) LEFT JOIN qjs6g_invoices_payments as pa3 ON (pa3.invoice_id = i.id AND pa3.payment_status = 0 AND (pa3.payment_duedate > NOW() OR pa3.payment_duedate = "0000-00-00 00:00:00")) LEFT JOIN qjs6g_users as u ON u.id = co.user_id WHERE i.type = 1 GROUP BY i.id ORDER BY i.id DESC

THanks
Carsten
Responses (4)
  • Accepted Answer

    Monday, September 28 2015, 12:43 PM - #Permalink
    0
    This means that MySQL asks you to enable the directive "SET SQL_BIG_SELECTS=1".

    If you don't know how to do this, if you want you can send us access at support@ joomlathat.com and we can do it for you
    The reply is currently minimized Show
  • Accepted Answer

    kimler
    kimler
    Offline
    Monday, September 28 2015, 01:04 PM - #Permalink
    0
    Ok do you want the access for the webspace via ftp or database?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 28 2015, 01:18 PM - #Permalink
    0
    FTP should be enough
    The reply is currently minimized Show
  • Accepted Answer

    kimler
    kimler
    Offline
    Monday, September 28 2015, 01:35 PM - #Permalink
    0
    Ok you got it!!!!
    Thanks
    Carsten
    The reply is currently minimized Show
Your Reply