Shouldn't be hard since its already stored in a table dont know the right way to implement it, but something like this query

SELECT * FROM `ubbt_POSTS` WHERE `POST_ID` =