I have 2 tables. tbl_names and tbl_section which has both the id field in them. How do I go about selecting the id field,
tbl_names
tbl_section
id
You would do that by providing a fully qualified name, e.g.:
SELECT tbl_names.id as id, name, section FROM tbl_names, tbl_section WHERE tbl_names.id = tbl_section.id
Which would give you the id of tbl_names