SELECT dealing_record.* ,shares.* ,transaction_type.* FROM shares INNER JOIN shares ON shares.share_ID = dealing_record.share_id INNER JOI
Try to join shares with dealing_record, not shares again:
select dealing_record.*, shares.*, transaction_type.* FROM shares inner join dealing_record on shares.share_ID = dealing_record.share_id inner join transaction_type on transaction_type.transaction_type_id= dealing_record.transaction_type_id;