Fixed show subpart sql