I've seen similar data truncation behaviour before, but not related to joins. How big is your webSQL database? Check the size
value of your window.openDatabase()
command, it may be too small for your database.
window.openDatabase(name, version, display_name, size);