Community

Connecting WordPress People

Error in SQL

NNathanW 1 reply 0 views 2 readers

  1. New
    #1

    Hi, I have downloaded your Better Message plugin to test for a project but have discovered in my error logs that their is an error in one of the queries your plugin is making. I have search the source code but cannot find where it is.

    The query is:

    SELECT sender_id
    FROM wp7dl_bp_messages_messages
    WHERE thread_id = 1
    AND sender_id != '0'
    ORDER BY wp_bp_messages_messages.date_sent ASC
    LIMIT 0,1

    You will see in the from that my WP database is prefixed with "wp7dl_" but in your ORDER BY you have hard coded "wp_" which is causing the query to fail.

    Could you fix this and either release an update or let me know which file I need to edit.

    Thanks

    Nathan

    More reactions: press the Down arrow
    views
  2. New
    Admin
    #2

    Hi there!

    I will check and fix.

    More reactions: press the Down arrow
0