>$id = 0; >// Make sure "id" is set and use intval() to makes sure the value is only an integer >if(isset($_REQUEST['id'])) >$id = intval($_REQUEST['id']); >// Construct your SQL statement now >$sql = 'SELECT a.ID, c.content FROM article AS a INNER JOIN comment AS c ON a.ID = c.articleID WHERE a.ID = "' . $id . '" GROUP BY a.ID, c.content ORDER BY a.ID DESC LIMIT 5'; > >>