php error happened

Technical information
Error type256
Error descriptionSource: Microsoft JET Database Engine Description: Data type mismatch in criteria expression.
URLthelincolnregistry.com/registry/Lincolns_list.php?f=(VINplant~equals~5)
Error fileE:\hostingspaces\rotella\thelincolnregistry.com\wwwroot\registry\connections\Connection.php
Error line668
SQL querySELECT [TrimLevel] AS [a11hxarau8],COUNT( [TrimLevel] ) AS [TrimLevelTOTAL],[BodyStyle] AS [azqmfyj4l0],[SeriesName] AS [aafm1rncwy],[VINplant] AS [a459rhuh9y] FROM ( SELECT [ID], [VIN], [ModelYear], [SeriesName], [BodyStyle], [Codes], [VINyear], [VINplant], [VINseries], [VINengine], [VINsix], [CodesBody], [CodesColor], [CodesTrim], [CodesDSO], [CodesAxle], [CodesTrans], [Status], [Location], [Significant], [Source], [OwnerName], [OwnerDetails], [OwnerEmail], [SpotterName], [Comments], [HiddentComments], [UnusedExtra], [Image1], [Active], [PVE], [Alert], [Features], [Entered], [LastUpdate], [TrimLevel], [CodesDate], [Username] FROM [Lincolns] WHERE ( ( ( ( ( ( VINplant = '5' OR VINplant LIKE '%,5' OR VINplant LIKE '5,%' OR VINplant LIKE '%,5,%' ) ) ) ) ) ) ) a WHERE ( NOT ( [TrimLevel] is null ) ) AND ( NOT ( [BodyStyle] is null ) ) AND ( NOT ( [SeriesName] is null ) ) AND ( NOT ( [VINplant] is null ) ) GROUP BY [TrimLevel],[BodyStyle],[SeriesName],[VINplant]

More info