$search = '%'.$_GET['q'].'%';
$sql = "SELECT * FROM questions WHERE body LIKE ? OR title LIKE ?, LIMIT ?,?";
$stmt->prepare($sql);
$stmt->bind_param("ss", $search, $search, $limit, $offset);
$stmt->execute();
$rows = $stmt->get_result()->fetch_all(MYSQLI_ASSOC);