I am having issues with below code which display the news added in the database after few hours, the news is added straight away in the database once created and not sure if i need to make any changes in below code so it fetches the updated
$query="SELECT *
FROM
(
SELECT id,ext,database_id
FROM images
WHERE database_name='news' AND database_id IN(" . implode(',',array_keys($news)) . ")
ORDER BY role
) AS images
GROUP BY database_id";