i have a basic stored procedure
DECLARE user_o VARCHAR(50); SELECT user_name INTO user_o FROM users WHERE topic_id = 54 AND entry_time BETWEEN 2017-09-17 AND d
Its because you are inserting the result 'INTO' a variable and because the result is more than a single value, hence the error.
You have a limit of 10, try changing to 1, that will fix it, if you want multiple values returned then you need to manage these in a recordset.