this code read the data from database where i have 3 tables i want trying to print the title which is course and its details in module table but i got an error saying Unknown column 'SCQF07' in 'where clause' can give me advice how to solve this problem thanks in advance
<?php
$m = new mysqli("localhost","user","pwd","courses");
if ($m->connect_errno)
{
die("Database connection failed");
}
$m->set_charset('utf8');
$i = $_REQUEST['ide'];
$sql = "SELECT module.level, module.credits, cm.course, module.school, course.title
from cm
join module on (module = module.id)
join course on (course = course.id)
where module = $i";
$res = $m->query($sql) or die($m->error);
$CastArray = Array();
$row = $res->fetch_assoc();
?>
<html>
<head>
</head>
<body>
<h1><?php echo "$row[tile] - <a href=movies3.php?ide=$row[course]>$row[title]</a>"; ?></h1>
</body>
</html>
table course
id primary key
title
href
level
award
summary
dept
subject
overview
wyl
careers
table cm
course foreign key
module foreign key
num
table module
id primary key
title
level
credits
school