I am using the following SQL query to extract content from the tables posts, users and comments
When I run the query o
Multiple tables in your query have ID column. Use field aliases instead of * in select. For example,
ID
*
select
SELECT posts.id as post_id, ..... FROM posts ....
Or you can get the right id using $thisResult[0] (assuming id is the first column in posts table)
$thisResult[0]
posts