$ 0 0 You probably need to cast Records as an integer, see Ligumaqua's post here or the one two down from it.