Created
July 30, 2014 18:57
-
-
Save anestv/511e6bb21812de3fe350 to your computer and use it in GitHub Desktop.
QA search for github.com/anestv/pa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM questions WHERE | |
MATCH(question, answer) AGAINST ('$escapedQuery') AND | |
answer IS NOT NULL AND | |
fromuser LIKE '$fromuseresc%' AND | |
touser LIKE '$touseresc%' AND | |
touser IN (SELECT username FROM users WHERE deleteon IS NULL) AND | |
timeanswered BETWEEN '$dateFormatted' AND --an exei dwsei hmeromhnia | |
'$dateFormatted' + INTERVAL 1 MONTH - INTERVAL 1 DAY AND | |
publicask = 1; --an $fromuser !== $user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment