Other answers answer the question. I will focus on the main reason: poor circuit design.
Do not massage the array in columns. Here you have 3 * 10 columns that should be turned into 10 rows of 3 columns in a new table (plus id , etc.)
The Main table will only
id int(11) No name text No date date No time time No schedule int(11) No category int(11) No status int(11) No admin_id int(11) No
Your extra table ( Top ) would have
id int(11) No -- for joining to Main seq TINYINT UNSIGNED -- containing 1..10 img varchar(255) No title varchar(255) No desc text No PRIMARY KEY(id, seq) -- so you can easily find the 10 top_titles
In Top for each id will be 10 (or less?) Lines.
This fixes your original problem and clears the circuit. (This is not "normalization," as discussed in some comments.)
Do not switch to MyISAM; He's leaving.
Do not worry about ROW_FORMAT .
You will need to modify your code to make a JOIN , and handle multiple rows instead of multiple columns.
Rick James Oct 12 '17 at 16:15 2017-10-12 16:15
source share