I have a query that returns newest uploaded row from table and updates that row with session user. This is my current code but I am getting random data row from my database: