wp_get_links returns an error (1 post)

  1. germanny
    Posted 9 years ago #

    This is probably something I did, because I haven't seen any other posts askin about this problem.

    For some reason, when I use wp_get_links or wp_get_linksbyname, I get this error:

    WordPress database error: [Unknown column 'link_0' in 'order clause']
    SELECT link_url, link_name, link_image, link_target, link_description, link_rating, link_rel , IF (DATE_ADD(link_updated, INTERVAL 120 MINUTE) >= NOW(), 1,0) as recently_updated , UNIX_TIMESTAMP(link_updated) AS link_updated_f FROM wp_links WHERE link_visible = 'Y' AND link_category = 1 ORDER BY link_0 ASC LIMIT 1

    I went into the code and tried to figure out what was wrong, and I even found the original page code and made sure the wp_get_links function was the same. But I can't figure out what's wrong with the sort order. Can someone else see it?

    Thanks for any help you can provide.

Topic Closed

This topic has been closed to new replies.

About this Topic