23.02.2015, 19:14
Why aren't you just using one select query instead of selecting everything separately by an ID?
For your problem, try to remove the apostrophe symbol in your select query where `ID` = '%i', should be: `ID` = %i
For your problem, try to remove the apostrophe symbol in your select query where `ID` = '%i', should be: `ID` = %i