<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Appears to be an error in mythweb sql statements.</div><div><br></div><div>2012-04-10 11:29:00.834061 E [1771/1800] Scheduler mythdbcon.cpp:823 (prepare) - Error preparing query: REPLACE INTO recordmatch (recordid, chanid, starttime, manualid) SELECT record.recordid, program.chanid, program.starttime,&nbsp; IF(search = 5, record.recordid, 0) FROM (record, program INNER JOIN channel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON channel.chanid = program.chanid) Manchester City vs. West Bromwich WHERE record.recordid = :NR0RECID AND program.manualid = 0 AND ( From Etihad Stadium. ) AND channel.visible = 1&nbsp; AND (((record.filter &amp; 1) = 0) OR (program.previouslyshown = 0)) AND (((record.filter &amp; 2) = 0) OR (program.generic = 0)) AND (((record.filter &amp; 4) = 0) OR (program.first &gt; 0)) AND (((record.filter &amp; 8) = 0)
 OR (HOUR(program.starttime) &gt;= 19 AND HOUR(program.starttime) &lt; 23)) AND (((record.filter &amp; 16) = 0) OR (channel.commmethod = -2)) AND (((record.filter &amp; 32) = 0) OR (program.hdtv &gt; 0)) AND (((record.filter &amp; 64) = 0) OR ((record.programid &lt;&gt; '' AND program.programid = record.programid) OR (record.programid = '' AND program.subtitle = record.subtitle AND program.description = record.description))) AND (((record.filter &amp; 128) = 0) OR ((record.seriesid &lt;&gt; '' AND program.seriesid = record.seriesid))) AND ((record.type = 4 OR record.type = 6 OR record.type = 9 OR record.type = 10)&nbsp; OR&nbsp; ((record.station = channel.callsign)&nbsp;&nbsp; AND&nbsp;&nbsp; ((record.type = 3)&nbsp;&nbsp;&nbsp; OR&nbsp;&nbsp; ((TIME_TO_SEC(record.starttime) = TIME_TO_SEC(program.starttime))&nbsp;&nbsp;&nbsp;&nbsp; AND&nbsp;&nbsp;&nbsp;&nbsp; ((record.type = 2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OR&nbsp;&nbsp;&nbsp;&nbsp;
 ((DAYOFWEEK(record.startdate) = DAYOFWEEK(program.starttime)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((record.type = 5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((TO_DAYS(record.startdate) = TO_DAYS(program.starttime))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND (record.type &lt;&gt; 0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp; )&nbsp; ) ))<br>2012-04-10 11:29:00.834073 E [1771/1800] Scheduler mythdbcon.cpp:825 (prepare) - Driver error was [2/1064]:<br>QMYSQL3: Unable to prepare statement<br>Database error was:<br>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 'Manchester City vs. West Bromwich WHERE record.recordid = ? AND program.manualid' at line
 1<br><br>2012-04-10 11:29:00.834186 E [1771/1800] Scheduler mythdb.cpp:192 (DBError) - DB Error (UpdateMatches3):<br>Query was:<br>REPLACE INTO recordmatch (recordid, chanid, starttime, manualid) SELECT record.recordid, program.chanid, program.starttime,&nbsp; IF(search = 5, record.recordid, 0) FROM (record, program INNER JOIN channel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON channel.chanid = program.chanid) Manchester City vs. West Bromwich WHERE record.recordid = :NR0RECID AND program.manualid = 0 AND ( From Etihad Stadium. ) AND channel.visible = 1&nbsp; AND (((record.filter &amp; 1) = 0) OR (program.previouslyshown = 0)) AND (((record.filter &amp; 2) = 0) OR (program.generic = 0)) AND (((record.filter &amp; 4) = 0) OR (program.first &gt; 0)) AND (((record.filter &amp; 8) = 0) OR (HOUR(program.starttime) &gt;= 19 AND HOUR(program.starttime) &lt; 23)) AND (((record.filter &amp; 16) = 0) OR (channel.commmethod = -2)) AND (((record.filter &amp; 32) = 0) OR
 (program.hdtv &gt; 0)) AND (((record.filter &amp; 64) = 0) OR ((record.programid &lt;&gt; '' AND program.programid = record.programid) OR (record.programid = '' AND program.subtitle = record.subtitle AND program.description = record.description))) AND (((record.filter &amp; 128) = 0) OR ((record.seriesid &lt;&gt; '' AND program.seriesid = record.seriesid))) AND ((record.type = 4 OR record.type = 6 OR record.type = 9 OR record.type = 10)&nbsp; OR&nbsp; ((record.station = channel.callsign)&nbsp;&nbsp; AND&nbsp;&nbsp; ((record.type = 3)&nbsp;&nbsp;&nbsp; OR&nbsp;&nbsp; ((TIME_TO_SEC(record.starttime) = TIME_TO_SEC(program.starttime))&nbsp;&nbsp;&nbsp;&nbsp; AND&nbsp;&nbsp;&nbsp;&nbsp; ((record.type = 2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OR&nbsp;&nbsp;&nbsp;&nbsp; ((DAYOFWEEK(record.startdate) = DAYOFWEEK(program.starttime)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((record.type = 5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 OR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((TO_DAYS(record.startdate) = TO_DAYS(program.starttime))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND (record.type &lt;&gt; 0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp;&nbsp; )&nbsp;&nbsp; )&nbsp; ) ))<br>Bindings were:<br>:NR0RECID="421"<br>Driver error was [2/1064]:<br>QMYSQL: Unable to execute query<br>Database error was:<br>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 'Manchester City vs. West Brom<br></div><div><br></div><div>myth src # mythbackend&nbsp; --version<br>Please attach all output as a file in bug reports.<br>MythTV Version : v0.25<br>MythTV Branch : fixes/0.25<br>Network Protocol : 72<br>Library API : 0.25.20120408-1<br>QT Version : 4.6.3<br>Options compiled in:<br>&nbsp;linux profile
 use_hidesyms using_alsa using_oss using_backend using_bindings_perl using_bindings_python using_bindings_php using_firewire using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_libudf using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_v4l1 using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg using_libass using_libxml2 using_libudf<br></div><div><br></div><div><br></div><div>I see the above error using commit 1d056f77dc29045008b52b82e90bc935ff1ab948 of mythweb<br></div><div><br></div><div>If I use commit efd3da660e2f1220372253a7c92f964ff1c5047a I dont have any issues.</div><div><br></div><div>Mike<br></div><div><br></div><div><br></div><div></div></div></body></html>