It should work the same on both... are you sure your database connection information is correct for the live server and the table name and column names are all the same?
If you give me ftp access and a url to reproduce the problem I could debug it for you, but most likely it is a difference in the database structure or how you connect to it.