can anybody give me query of current version of my sql of

$sql = "SELECT entries.*, FROM entries, catagories
WHERE entries.cat_id =
ORDER BY dateposted DESC
LIMIT 1;";

i will be thankful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.