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~1)
Error fileE:\hostingspaces\rotella\thelincolnregistry.com\wwwroot\registry\connections\Connection.php
Error line668
SQL querySELECT [TrimLevel] AS [aypiw6oncn],COUNT( [TrimLevel] ) AS [TrimLevelTOTAL],[BodyStyle] AS [al42063tkw],[SeriesName] AS [ao2xxrjivf],[VINplant] AS [at3covygw4] 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 = '1' OR VINplant LIKE '%,1' OR VINplant LIKE '1,%' OR VINplant LIKE '%,1,%' ) ) ) ) ) ) ) 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