You sure its the same problem? From the sound of it, you run "myasmchk", which shouldn't do anything directly to LSQL (simply checks/fixes any database corruption). The "Repair Tables" feature in LSQL will check for orphan links; as well as repairing category counts.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!