SELECT count( DISTINCT un_stand.stand_id ) AS nbentreprises FROM un_stand JOIN un_stand_lang ON un_stand_lang.stand_id = un_stand.stand_id AND un_stand_lang.stand_lang = ? AND un_stand_lang.stand_visible = ? 
Array
(
    [0] => HY000
    [1] => 2006
    [2] => MySQL server has gone away
)
Array
(
    [0] => Array
        (
            [file] => /var/www/anat/www.usinenouvelle.com/html/expo/private/class/stands.class.php
            [line] => 33
            [function] => prepare
            [class] => Database
            [type] => ::
            [args] => Array
                (
                    [0] => PDO Object
                        (
                        )

                    [1] =>  SELECT count( DISTINCT un_stand.stand_id ) AS nbentreprises FROM un_stand JOIN un_stand_lang ON un_stand_lang.stand_id = un_stand.stand_id AND un_stand_lang.stand_lang = ? AND un_stand_lang.stand_visible = ? 
                )

        )

    [1] => Array
        (
            [file] => /var/www/anat/www.usinenouvelle.com/html/expo/private/pages/05-Nosoffres/00-index.php
            [line] => 110
            [function] => compteEntreprises
            [class] => Stands
            [type] => ::
            [args] => Array
                (
                )

        )

    [2] => Array
        (
            [file] => /var/www/anat/www.usinenouvelle.com/html/expo/index.php
            [line] => 93
            [args] => Array
                (
                    [0] => /var/www/anat/www.usinenouvelle.com/html/expo/private/pages/05-Nosoffres/00-index.php
                )

            [function] => require_once
        )

)