I have a case where getting the Table name should be from a Set Variable like :
SET @ID_1 = (SELECT ID FROM `slider` LIMIT 0,1);
SET @Cat = (SELECT Category FROM `slider` LIMIT 0,1);
select * from @Cat where ID = @ID_1
but doing that way MySQL output's and error ,so could someone point me how can i Achieve that ,because these are my baby steps to MySQL