SELECT
DATE_FORMAT(`start_date`, '%x-%v') weeks,
COUNT(*), DATE_ADD(`start_date`, INTERVAL(2-DAYOFWEEK(`start_date`)) DAY) first_date,
DATE_ADD(`start_date`, INTERVAL(8-DAYOFWEEK(`start_date`)) DAY) last_date
FROM `events` GROUP BY weeks;
var div = '<div id="div"></div>'
var div = "<div id='div'></div>" // не люблю такой HTML-код
var div = "<div id=div></div>"; // такой тоже
var div = "<div id=\"div\"></div>"; // плохая читаемость