The database query uses GROUP_CONCAT. To increase the number of characters for the output string , you need to use
SET SESSION group_concat_max_len = 1000000; What is the best way to combine SET SESSION with SELECT? Does it make sense to use multi_query ? For example, so
if ($mysqli->multi_query("SET SESSION group_concat_max_len = 1000000; SELECT url, title, (SELECT GROUP_CONCAT(CONCAT('<cite>', a.author, '</cite>', b.comment) separator '\n') FROM comment b, author a WHERE b.id_post = p.id AND a.id = b.id_author ORDER BY b.id) comment FROM post p WHERE id=1 LIMIT 1;")) { do { if ($result = $mysqli->store_result()) { $row = $result->fetch_assoc(); $result->free(); } } while ($mysqli->next_result()); } Confused by the presence of a do..while loop, although one line is required.
SET GLOBAL can not apply because it is used virtual hosting.