【发布时间】:2012-04-13 13:54:23
【问题描述】:
我在我的桌面上使用 XAMPP (Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 MySQL 客户端版本:mysqlnd 5.0。 7-dev - 091210 - $Revision: 304625 $)
我有一个 MYSQL SELECT 语句在我的桌面应用程序中运行良好,甚至在 phpMyadmin 中运行它并且运行正常。
当我将我的应用程序移至我的网络主机时,该语句失败。我的虚拟主机使用 MySQL 客户端版本运行 Apache:5.0.92 当我在我的网络主机上使用 phpMyadmin 时,它给了我错误:
FUNCTION nwilin5_eib_jtest.FIELD does not exist
声明如下:
SELECT a.*, p.name as parent, p.id as parentid, c.name as cat
, c.id as catid,u.username as user, f.itemid as featured
, f.payment_date as FeaturedPayDate, f.limit_date as FeaturedExpDate
FROM jos_classifiedsredux_ads as a
LEFT JOIN jos_users as u
ON a.userid = u.id
LEFT JOIN jos_classifiedsredux_pay4featuredad as f
ON a.id = f.itemid
INNER JOIN jos_classifiedsredux_categories as c
ON a.category = c.id
LEFT JOIN jos_classifiedsredux_categories as p
ON c.parent = p.id
WHERE a.published = 1
ORDER BY FIELD (a.id, 137, 226, 134, 135, 220, 240, 233, 219, 146, 138, 136, 133)
【问题讨论】: