AttributeError: 'NoneType' object has no attribute 'bind'

enter image description here hi. i try to solve such a problem so that it's give me AttributeError can you help me