A PHP Error was encountered

Severity: Warning

Message: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111

Filename: core/MY_Router.php

Line Number: 87

A PHP Error was encountered

Severity: Warning

Message: mysql_select_db(): supplied argument is not a valid MySQL-Link resource

Filename: core/MY_Router.php

Line Number: 88

A PHP Error was encountered

Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Filename: core/MY_Router.php

Line Number: 94

A PHP Error was encountered

Severity: Warning

Message: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established

Filename: core/MY_Router.php

Line Number: 94

A PHP Error was encountered

Severity: Warning

Message: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Filename: core/MY_Router.php

Line Number: 96

A PHP Error was encountered

Severity: Warning

Message: mysql_query() [function.mysql-query]: A link to the server could not be established

Filename: core/MY_Router.php

Line Number: 96

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
SELECT COUNT(id_categoria) as count FROM categoria WHERE slug = '' AND libera="1"