SELECT DISTINCT p1.ID, p1.FDcatid, p1.FDsubID, p1.FDtitle, p1.FDprice, p1.FDbrand, p1.FDstockno, p1.FDstatus, p1.FDspecial, p1.FDdiscount, p1.FDdelivery, c1.FDcategory, c1.FDorder,b1.FDtitle as FDbrandname ,b1.ID as FDbrandID ,s1.FDname AS FDsubname, col1.FDcolour,col1.ID AS FDcolourID FROM TBLproducts p1 INNER JOIN TBLcategories c1 ON p1.FDcatid = c1.ID INNER JOIN TBLsubcategories s1 ON p1.FDsubid = s1.ID INNER JOIN TBLBrands b1 ON p1.FDbrand = b1.ID INNER JOIN TBLcolours col1 ON p1.ID = col1.FDproductID WHERE p1.ID >0 AND p1.FDstatus='True' AND p1.FDcatID='1' AND p1.FDsubID='files 1' ORDER BY FDprice ASC System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting the varchar value 'files 1' to data type int. at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn) at online_shop_Default.Page_Load(Object sender, EventArgs e) in C:\Domains\surfguru.co.uk\wwwroot\online-shop\listing.aspx.vb:line 128 ClientConnectionId:d8f92d83-3038-4f3e-b3d0-ecf6bec6eb93 Error Number:245,State:1,Class:16SELECT DISTINCT TBLcolours.FDcolour FROM TBLproducts INNER JOIN TBLcolours ON TBLproducts.ID = TBLcolours.FDproductID WHERE TBLcolours.ID>0 AND TBLproducts.FDcatID = '1' AND TBLproducts.FDsubID = 'files 1' SELECT DISTINCT TBLsizes.FDuk,TBLsizes.FDeuro FROM TBLproducts INNER JOIN TBLcolours ON TBLproducts.ID = TBLcolours.FDproductID Inner Join TBLsizes On TBLsizes.FDcolourID = TBLcolours.ID WHERE TBLcolours.ID>0 AND TBLproducts.FDcatID = '1' AND TBLproducts.FDsubID = 'files' SELECT DISTINCT TBLbrands.ID,TBLbrands.FDtitle FROM TBLproducts Inner Join TBLbrands On TBLbrands.ID = TBLproducts.FDbrand INNER JOIN TBLcolours ON TBLproducts.ID = TBLcolours.FDproductID WHERE TBLbrands.ID>0 AND TBLproducts.FDcatID = '1' AND TBLproducts.FDsubID = 'files' SELECT DISTINCT TBLsubcategories.ID,TBLsubcategories.FDname FROM TBLproducts Inner Join TBLsubcategories On TBLsubcategories.ID = TBLproducts.FDsubID INNER JOIN TBLcolours ON TBLproducts.ID = TBLcolours.FDproductID WHERE TBLsubcategories.ID>0 AND TBLproducts.FDcatID = '' AND TBLproducts.FDsubID = 'files '