Yes, something wrong in this sql. Tested and Fixed. Sorry.