Based on the revised SQL you posted, it seems you want the data if the TransactionID meets a specific ID OR if the Source_Certificate matches a value, so you should be able to combine your query pulling records on either criteria.
i.e.
SELECT Destination_Shareholder,Source_Shareholder, Transaction_Date, Share_Price,Number_Of_Shares FROM TransactionHistory WHERE TransactionID = $getTransID OR Source_Certificate = $destinationCertificate[$loopCounter]
JOINs are really easy, and you may have already used them before without knowing.
i.e.
SELECT columnA, columnB FROM tableA, tableB WHERE columnA = 1
MySQL optimizes your query and creates an INNER JOIN on the two tables
SELECT tableA.columnA, tableB.columnB FROM tableA INNER JOIN tableB WHERE tableA.columnA = 1