SQL Query Error in defining the alias for column
<p>My following sql query giving me the following error, What does it mean. Am i defining the alias fir column in wring way. Please help me out with this.
My error is this and i am putting query just below the error.</p>

<pre><code>Error in SELECT clause: expression near 'Year'.
Missing FROM clause.
Unable to parse query text.



SELECT [tbl_students].passing_year as Passing Year,[tbl_branch].branch_name as Branch_Name FROM [tbl_students], [tbl_course], [tbl_branch] WHERE [tbl_students].course_id=@courseId 
                        AND   [tbl_students].branch_id IN(64) 
                        AND   [tbl_students].course_id=[tbl_course].course_id AND [tbl_students].branch_id=[tbl_branch].branch_id                        
                        AND  (@firstYrPercent is null OR [tbl_students].first_year_percent&gt;=@firstYrPercent)
                        AND  (@secondYrpercent is null OR [tbl_students].second_year_percent&gt;=@secondYrPercent)
                        AND  (@thirdYrPercent is null OR[tbl_students].third_year_percent&gt;=@thirdYrPercent)
                        AND  (@finalYearpercent is null OR [tbl_students].final_year_percent&gt;=@finalYearpercent)
                        AND  (@currentDegeePercentage is null OR [tbl_students].current_degree_percent&gt;=@currentDegeePercentage)
                        AND  (@passoutYear is null OR [tbl_students].passing_year&gt;=@passoutYear) 
                        AND  (@currentBacklog is null OR [tbl_students].current_backlog=@currentBacklog)
                        AND  (@sex is null OR [tbl_students].gender=@sex) 
                        AND  (@eGap is null OR [tbl_students].gapin_education&lt;=@eGap)
                        AND  (@highSchoolPercentge is null OR [tbl_students].highschool_percentage&gt;=@highSchoolPercentge)
                        AND  (@higherSchoolPercentage is null OR [tbl_students].ssc_percentage&gt;=@higherSchoolPercentage)
                        AND  (@grauationPercentage is null OR [tbl_students].graduation_percentage&gt;=@grauationPercentage)
                        AND  (@diplomaPercentage is null OR [tbl_students].diploma_percentage&gt;=@diplomaPercentage)
                        AND  (@noOfAtkt is null OR [tbl_students].number_of_ATKT&lt;=@noOfAtkt)
                        AND  (@validDate is null OR [tbl_students].DOB&gt;=@validDate)
</code></pre>
