Symphony 2.4 compatibility

Hi

Here are a few bug fixes including 
+ symphony 2.4 compatibility
+ Mysql query bugfix
+ A js bug that was appearing in chrome