YOP Poll
[resolved] WordPress database error: SQL syntax error (2 posts)

  1. crysman
    Posted 2 years ago #

    If I select "Expired" or "Started" or "Not Started" filter in "All polls" list, there is a 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 '= '2013-07-30 17:48:51' AND ( name like '%%' OR question like '%%' ) OR' at line 1]
    SELECT * FROM luzwp_yop_polls WHERE end_date <= '2013-07-30 17:48:51' AND ( name like '%%' OR question like '%%' ) ORDER BY name

    I see there is a SQL query containing

    like '%%'

    which is very probably wrong.

    I am using latest (4.2) version on WP 3.5.1

    If this is a bug, are you going to patch it?


  2. YOP
    Plugin Author

    Posted 2 years ago #

    Hi crysman,

    It looks like there's a bug and we will fix it in the future.
    Thanks for reporting.


    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic