Hi all,
I'm trying to write a plugin. I am getting SQL errors thrown with queries in the log containing the character sequence <=> in column definitions.
I am assuming these are supposed to be pre-processed before sending to the database.
I am trying to override qa_db_posts_basic_selectspec by joining to postmetas table for additional filtering.
All I did was to include an extra join in the $selectspec['source'] like so:
$selectspec['source'].=' LEFT JOIN ^postmetas ON (^postmetas.postid = ^posts.postid AND ^postmetas.title=\'myField\' AND ^postmetas.content=$)';
array_push($selectspec['arguments'],$myVariable);
What am I doing wrong? The original code is doing the same thing as far as I can tell.