SET @v1 := SELECT COUNT(*) FROM user_rating; SELECT @v1
When I execute this query with set variable this error is shown.
set
use this
SELECT weight INTO @x FROM p_status where tcount=['value'] LIMIT 1;
tested and workes fine...