test1

Some

$nid = 2371;
print $nid;
$query = 'SELECT c.*, cs.specialist_nid, cs.specialist_name FROM {comments} c LEFT JOIN {comments_specialists} cs ON c.cid = cs.cid WHERE c.nid = %d';
$query_args = array($nid);

$result = db_query($query, $query_args);

while ($comment = db_fetch_object($result)){
print_r($comment);
}
?>