column count doesn't match value count at row 1
$objhelperClass->insert(PRODUCT,"catid
,subcat
,pname
,price
,sort_order
,description
","'".$_POST['cat']."','".$_POST['subcat']."','".$_POST['pname']."','".$_POST['amount']."','".$_POST['sort']."'");
$m=$objhelperClass->select(PRODUCT,"1","max(`id`)");
$pid=$m['max(`id`)'];
if(is_array($patas))
{
foreach(array_combine($patas,$thumbs) as $val => $val1)
{
//echo $val;
$objhelperClass->insert(IMAGES," `image`,`thumb`,`pid`,`link` ","'".$val."','".$val1."','".$pid."' ");
}
}