Veateade :

Error no: 1582.
Incorrect parameter count in the call to native function 'FROM_UNIXTIME'
SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999;


Asukohad :
Rida: 0009 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\core\core_debug.php
Rida: 0137 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\core\core_mysql_database.php
Rida: 0168 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\core\core_mysql_database.php
Rida: 0203 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\core\core_mysql_database.php
Rida: 0228 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\core\core_mysql_database.php
Rida: 0422 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\include\blog_class.php
Rida: 0032 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\admin\code\functions\core_functions.php(30) : eval()'d code
Rida: 0370 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\include\index_class.php
Rida: 0204 @ E:\WWW\ajakirilooduses.ee\ajakirilooduses.ee\index.php
Funktsioonid :

Debug::log(

„Error no: 1582. Incorrect parameter count in the call to native function 'FROM_UNIXTIME'  SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999; 
,
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
    [8] => 8
    [9] => 9
    [10] => 10
)
,
„r4f50ac9b44”

)


Debug::call(

„Error no: 1582. Incorrect parameter count in the call to native function 'FROM_UNIXTIME'  SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999; 
,
Array
(
    [0] => 0
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
    [8] => 8
    [9] => 9
    [10] => 10
)

)


MySqlDB->error(

Array
(
    [0] => 0
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 4
    [5] => 5
    [6] => 6
    [7] => 7
    [8] => 8
    [9] => 9
    [10] => 10
)

)


MySqlDB->query(

„ SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999; ”
,
5
,
FALSE

)


MySqlDB->handleResult(

„ SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999; ”
,
FALSE

)


MySqlDB->fetch_assoc(

„ SELECT cm.id, bi.*, bu.*, (SELECT AVG(hinne) FROM blog__hinne WHERE blog_id = bi.blog_id) as hinne FROM blog__indeks as bi INNER JOIN blog__grupp as bg ON bg.blog_id = bi.blog_id INNER JOIN blog__uudis as bu ON bu.blog_id = bi.blog_id LEFT JOIN cms__mainpage as cm ON cm.id = bi.blog_id WHERE bg.sisu_id = 25 AND !bi.peidetud AND YEAR(FROM_UNIXTIME(bi.kuup)) = YEAR(FROM_UNIXTIME()) ORDER BY bg.jrk desc LIMIT 999; ”

)


blog_class->blog_list(

„LIMIT 999”
,
25
,
„01-01-http:”

)


FRONT->__call(

„blog_list”
,
Array
(
    [0] => 999
    [1] => 25
    [2] => http:
)

)


index_class->sisu(

)