Skip to content

Instantly share code, notes, and snippets.

@pensiero
Created September 3, 2013 14:29
Show Gist options
  • Save pensiero/6424685 to your computer and use it in GitHub Desktop.
Save pensiero/6424685 to your computer and use it in GitHub Desktop.
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