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 [ModelYear] AS [a0idpmiv0r],COUNT( [ModelYear] ) AS [ModelYearTOTAL] 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 ( [ModelYear] is null or [ModelYear] = '' ) ) GROUP BY [ModelYear]

More info