Jump to content

Error PrestaShopDatabaseException


Recommended Posts

Hello !! I would like to know how to fix this error [PrestaShopDatabaseException]

Column 'id' in field list is ambiguous

 

            SELECT COUNT(`id`)

            FROM `ps_simpleauction_auction_winner` w

            LEFT JOIN `ps_simpleauction_auction` a

                ON (a.`id` = w.`id_auction`)

            WHERE `id_customer`='3'

                AND a.`id_shop` = '1' LIMIT 1

at line 635 in file classes/db/Db.php

 

629.             WebserviceRequest::getInstance()->setError(500, '
 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

630.         }

631.         else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

632.         {

633.             if ($sql)

634.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

635.             throw new PrestaShopDatabaseException($this->getMsgError());

636.         }

637.     }

638.

639.     /**

Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...