Created
September 3, 2013 14:29
-
-
Save pensiero/6424685 to your computer and use it in GitHub Desktop.
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 DISTINCT t1.sess | |
FROM ( | |
wp_cf7groups AS t1 | |
INNER JOIN wp_cf7dbplugin_submits AS t2 ON ( t1.cf1 = t2.submit_time | |
OR t1.cf2 = t2.submit_time ) | |
) | |
WHERE t2.form_name | |
IN ( | |
'Azienda1', 'Azienda2' | |
) | |
ORDER BY sess DESC | |
LIMIT 49 , 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment