Hi Jan Pieter,
Where does the select statement you quoted (SELECT * FROM qrtprojectenri_auth WHERE comp>=650 AND comp<=650 ORDER BY id LIMIT 20 ) originate? From a trace?
Is that the result of a straightforward Advanced Table module (with 650 originating from a From/To filtering rows in the table)?
Or perhaps you're using a <Filter> on Advanced Find coupled with a comp trigger which is of type Number?
Feel free to attach a sample model.
For best results, use the Firefox browser..