Adding a debug limit on the mysql select