php error happened

Technical information
Error type256
Error descriptionSource: Microsoft JET Database Engine Description: Data type mismatch in criteria expression.
URLthelincolnregistry.com/registry/Count_list.php?f=(BodyStyle~equals~6)
Error fileE:\hostingspaces\rotella\thelincolnregistry.com\wwwroot\registry\connections\Connection.php
Error line668
SQL querySELECT [ModelYear], [SeriesName], [BodyStyle], COUNT(1) FROM [Lincolns] WHERE ( ( ( ( ( [BodyStyle] = '6' OR [BodyStyle] LIKE '%,6' OR [BodyStyle] LIKE '6,%' OR [BodyStyle] LIKE '%,6,%' ) ) ) ) ) GROUP BY [ModelYear],[SeriesName],[BodyStyle] ORDER BY [ModelYear],[SeriesName],[BodyStyle]

More info