[EventCalendar] SQL syntax error for MySQL server version 4.0.20-standard

STCWDC Blog Diva stcwdc.blog at gmail.com
Fri Apr 20 09:01:09 UTC 2007


Hello,

I've installed Event Calendar v3.1.1 Release Candidate 1. We are using
WordPress 2.1.3.  I clicked on the Events category in our blog and got the
following message at the top of the window.

WordPress database error: [You have an error in your SQL syntax. Check the
manual that corresponds to your MySQL server version for
the right syntax to use near 'DESC,'%Y-%m-%d') DESC,
(wp_chapsticky.sticky_status = 1 AND wp_]
SELECT SQL_CALC_FOUND_ROWS wp_chapposts.*,
wp_chapsticky.sticky_status FROM wp_chapposts LEFT JOIN
wp_chappost2cat ON (wp_chapposts.ID = wp_chappost2cat.post_id) LEFT
JOIN wp_chapcategories ON (wp_chappost2cat.category_id =
wp_chapcategories.cat_ID) LEFT JOIN wp_chapec3_schedule ec3_sch ON
ec3_sch.post_id=id AND ec3_sch.end>='2007-04-19 00:00:00' LEFT JOIN
wp_chapsticky ON wp_chapsticky.sticky_post_id = wp_chapposts.ID WHERE
1=1 AND category_id IN (18) AND (post_type = 'post' AND (post_status
= 'publish' OR post_status = 'private')) AND ec3_sch.post_id IS NOT
NULL GROUP BY wp_chapposts.ID ORDER BY (wp_chapsticky.sticky_status =
2 AND wp_chapsticky.sticky_status IS NOT NULL) DESC,
DATE_FORMAT(wp_chapposts.ec3_sch.start DESC,'%Y-%m-%d') DESC,
(wp_chapsticky.sticky_status = 1 AND wp_chapsticky.sticky_status IS
NULL) DESC, DATE_FORMAT(wp_chapposts.ec3_sch.start DESC,'%T') DESC
LIMIT 0, 10

My ISP says "...it is not that there is an error in the database, but that
the events feature software you are using has some compatibility problem
with the SQL version of your database. You are using MySQL 4.0.20-standard.

You will need to re-write the Events Calendar plug in to match the specific
SQL command syntax (how the command is formatted) to match MySQL
4.0.20-standard's syntax for that command."

This is out of my realm of capability. Do you have a rewrite to fix this?

For reference, the blog is at http://www.stcwdc.org/wdcblog
<http://www.stcwdc.org/wdcblog>
I clicked on the Events category.

Thanks.

Cheers,
Cynthia A. Lockley
STC Fellow Society for Technical Communication (STC)
Washington, DC Chapter
e-mail: stcwdc.blog at gmail.com

http://www.stcwdc.org/              (STC Washington, DC Chapter)

http://www.stcsig.org/sn/               (STC AccessAbility SIG: Web Diva)

Regional Webmaster for Region 2
http://www.stcregion.org/region2/   (STC Region 2 site: Web Diva)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070420/a6717205/attachment.htm


More information about the EventCalendar mailing list