From:
whereClause = "'ObjectId=" + str(query_result1) + "'"
This looks to me like your resulting where clause would be
'ObjectId=49'
Try it without the single quotes:
whereClause = "ObjectId=" + str(query_result1)
In general I prefer the string format so I can better see the final string, but the result should be the same:
whereClause = "ObjectId = {0}".format(query_result1)
Also depending on your database management system, the case of "ObjectId" ("OBJECTID") might matter.
Edit in case anyone else sees this and wonders why I suggested removing the single quotes: I made an assumption that the query function is building a database query by inserting that parameter. A basic query with a WHERE clause might be, "SELECT * FROM working_table WHERE ObjectId = 1". By putting that parameter in single quotes, the query language treats it as a string: "... WHERE 'ObjectId=49'", so it is looking to compare that to a text field in the database. The query language would expect "WHERE 'ObjectId=49' = some_text_field".
Different query languages might return all results, return no results, or return an error. That I'm not sure about.