if(isset($_GET['param1']) && $_GET['param1'] == 'value1'){
exec(...);
}
SELECT COUNT(c.id) CountOfComments
FROM comments
WHERE c.record_id IN (... IDS ...)
GROUP BY c.record_id
В IN просто перечисляете ID записей, полученных из 1-го запроса.Internet Explorer has a lightly-documented “feature” that stops it from serving any custom 404 error page that is less than 512 bytes long. Your visitors will instead be sent to IE’s own 404 page (screenshot), which is generic and suggests they use an MSN search to “look for information on the Internet.” That’s one way to lose visitors! Make sure your custom 404 error page is over this limit — about 10 full lines of text and HTML should be enough.
<link rel="canonical" href="http://sample.tld/real/path/page.ext">
в хедере страницы. Подробнее: support.google.com/webmasters/bin/answer.py?hl=ru&answer=139394