MySQL – Operand should contain 1 column(s)

Your subquery is selecting two columns, while you are using it to project one column (as part of the outer SELECT clause). You can only select one column from such a query in this context. Consider joining to the users table instead; this will give you more flexibility when selecting what columns you want from … Read more

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’

It’s probably because MySQL is installed but not yet running. To verify that it’s running, open up Activity Monitor and under “All Processes”, search and verify you see the process “mysqld”. You can start it by installing “MySQL.prefPane”. Here is the complete tutorial which helped me: http://obscuredclarity.blogspot.in/2009/08/install-mysql-on-mac-os-x.html