me da este error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE realname =nombre_usuario at line 1
Código PHP:
$sel_sql = "SELECT am_users.realname,am_inspeccion.ins_folio,am_inspeccion.ins_nomemp WHERE realname ='".$session["name"]."'";