DATABASE ERROR:
SELECT id FROM cms_stats WHERE (ip = '54.196.13.210' AND page = '/novini/graf-k-osobistogo-priiomu-gromadjan-ker-vnictvom-ta-nachalnikami-v-d-l-v-sn-gur-vsko-raiono-f-l-mikola-vskogo-oblasnogo-centru-zainjatost.html')
The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay