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