I tried to do this:
SELECT (SELECT COUNT(*)
FROM users WHERE email != '') / (SELECT COUNT(*) FROM users)
But it gave me this error in php Operand should contain 1 column(s)
, in mysql everything works. Any other solution?
EDIT : its not exactly like that I had also groups by months, the above query works but the accepted answer solves my error