Prepared Statement for big queries problem